package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 竞彩比分结果对象 jc_result
 * 
 * @author ruoyi
 * @date 2024-07-20
 */
public class JcResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 竞彩编号 */
    @Excel(name = "竞彩编号")
    private Long jcNumber;

    /** 主场球队id */
    @Excel(name = "主场球队id")
    private Long homeId;

    /** 主场球队名称 */
    @Excel(name = "主场球队名称")
    private String homeTeam;

    /** 客场球队id */
    @Excel(name = "客场球队id")
    private Long opponentId;

    /** 客场球队名称 */
    @Excel(name = "客场球队名称")
    private String opponentTeam;

    /** 主场分数 */
    @Excel(name = "主场分数")
    private Long homeScore;

    /** 客场分数 */
    @Excel(name = "客场分数")
    private Long opponentScore;

    /** 比赛日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "比赛日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date raceDate;

    /** 胜负是否赢盘 1是 0否 */
    @Excel(name = "胜负是否赢盘 1是 0否")
    private Long outcomeResult;

    /** 大小最终基准分数 */
    @Excel(name = "大小最终基准分数")
    private BigDecimal referenceFinalScore;

    /** 大小分是否赢盘 1是 0否 */
    @Excel(name = "大小分是否赢盘 1是 0否")
    private Long referenceScoreResult;

    /** 让分最终基准分数 */
    @Excel(name = "让分最终基准分数")
    private BigDecimal asFinalScore;

    /** 让分是否赢盘 1是 0否 */
    @Excel(name = "让分是否赢盘 1是 0否")
    private Long asScoreResult;

    /** 类型1NBA 2英超 3西甲 4意甲 5德甲 6法甲 7中超 8J联赛 9WNBA */
    @Excel(name = "类型1NBA 2英超 3西甲 4意甲 5德甲 6法甲 7中超 8J联赛 9WNBA")
    private Long type;

    /** 是否有效 1有效 0无效 */
    @Excel(name = "是否有效 1有效 0无效")
    private Long yn;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ts;

    /** 更新人 */
    @Excel(name = "更新人")
    private String modifier;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setJcNumber(Long jcNumber) 
    {
        this.jcNumber = jcNumber;
    }

    public Long getJcNumber() 
    {
        return jcNumber;
    }

    public void setHomeId(Long homeId) 
    {
        this.homeId = homeId;
    }

    public Long getHomeId() 
    {
        return homeId;
    }

    public void setHomeTeam(String homeTeam) 
    {
        this.homeTeam = homeTeam;
    }

    public String getHomeTeam() 
    {
        return homeTeam;
    }

    public void setOpponentId(Long opponentId) 
    {
        this.opponentId = opponentId;
    }

    public Long getOpponentId() 
    {
        return opponentId;
    }

    public void setOpponentTeam(String opponentTeam) 
    {
        this.opponentTeam = opponentTeam;
    }

    public String getOpponentTeam() 
    {
        return opponentTeam;
    }

    public void setHomeScore(Long homeScore) 
    {
        this.homeScore = homeScore;
    }

    public Long getHomeScore() 
    {
        return homeScore;
    }

    public void setOpponentScore(Long opponentScore) 
    {
        this.opponentScore = opponentScore;
    }

    public Long getOpponentScore() 
    {
        return opponentScore;
    }

    public void setRaceDate(Date raceDate) 
    {
        this.raceDate = raceDate;
    }

    public Date getRaceDate() 
    {
        return raceDate;
    }

    public void setOutcomeResult(Long outcomeResult) 
    {
        this.outcomeResult = outcomeResult;
    }

    public Long getOutcomeResult() 
    {
        return outcomeResult;
    }

    public void setReferenceFinalScore(BigDecimal referenceFinalScore) 
    {
        this.referenceFinalScore = referenceFinalScore;
    }

    public BigDecimal getReferenceFinalScore() 
    {
        return referenceFinalScore;
    }

    public void setReferenceScoreResult(Long referenceScoreResult) 
    {
        this.referenceScoreResult = referenceScoreResult;
    }

    public Long getReferenceScoreResult() 
    {
        return referenceScoreResult;
    }

    public void setAsFinalScore(BigDecimal asFinalScore) 
    {
        this.asFinalScore = asFinalScore;
    }

    public BigDecimal getAsFinalScore() 
    {
        return asFinalScore;
    }

    public void setAsScoreResult(Long asScoreResult) 
    {
        this.asScoreResult = asScoreResult;
    }

    public Long getAsScoreResult() 
    {
        return asScoreResult;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setYn(Long yn) 
    {
        this.yn = yn;
    }

    public Long getYn() 
    {
        return yn;
    }

    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }

    public void setTs(Date ts) 
    {
        this.ts = ts;
    }

    public Date getTs() 
    {
        return ts;
    }

    public void setModifier(String modifier) 
    {
        this.modifier = modifier;
    }

    public String getModifier() 
    {
        return modifier;
    }

    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jcNumber", getJcNumber())
            .append("homeId", getHomeId())
            .append("homeTeam", getHomeTeam())
            .append("opponentId", getOpponentId())
            .append("opponentTeam", getOpponentTeam())
            .append("homeScore", getHomeScore())
            .append("opponentScore", getOpponentScore())
            .append("raceDate", getRaceDate())
            .append("outcomeResult", getOutcomeResult())
            .append("referenceFinalScore", getReferenceFinalScore())
            .append("referenceScoreResult", getReferenceScoreResult())
            .append("asFinalScore", getAsFinalScore())
            .append("asScoreResult", getAsScoreResult())
            .append("type", getType())
            .append("yn", getYn())
            .append("creator", getCreator())
            .append("ts", getTs())
            .append("modifier", getModifier())
            .append("modifyTime", getModifyTime())
            .toString();
    }
}
